FROM golang:1.14 as builder
# 这个镜像有点大

# 其实打包进去的是个二进制文件，这环境变量不需要了
#ENV GO111MODULE=on \
#    GOPROXY=https://goproxy.cn,direct \
#    GIN_MODE=release \
#    PORT=80

WORKDIR /home
COPY ./conf ./conf
COPY ./script ./script
COPY viper-demo .


CMD ["/bin/bash", "/home/script/start.sh"]

EXPOSE 8888
